extends Node2D
@onready var sfx01: AudioStreamPlayer = $点击音效


# Called when the node enters the scene tree for the first time.
func _ready() -> void:
	pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
	pass


func _on_关卡_pressed() -> void:
	sfx01.play();
	await get_tree().create_timer(0.5).timeout
	get_tree().change_scene_to_file("res://场景/教程关卡.tscn");
	pass # Replace with function body.
func go_to_first():
	sfx01.play();
	await get_tree().create_timer(0.5).timeout
	get_tree().change_scene_to_file("res://正式关卡/关卡1风和日丽.tscn")
func go_to_second():
	sfx01.play();
	await get_tree().create_timer(0.5).timeout
	get_tree().change_scene_to_file("res://正式关卡/关卡2举步维艰.tscn")
func go_to_third():
	sfx01.play();
	await get_tree().create_timer(0.5).timeout
	get_tree().change_scene_to_file("res://正式关卡/关卡3险象环生.tscn")
func go_to_forth():
	sfx01.play();
	await get_tree().create_timer(0.5).timeout
	get_tree().change_scene_to_file("res://正式关卡/关卡4电掣狂飙.tscn")
func go_to_fifth():
	sfx01.play();
	await get_tree().create_timer(0.5).timeout
	get_tree().change_scene_to_file("res://关卡5暗夜孤灯.tscn")
func go_to_sixth():
	sfx01.play();
	await get_tree().create_timer(0.5).timeout
	get_tree().change_scene_to_file("res://关卡6驱雷策电.tscn")
func go_to_EX():
	sfx01.play();
	await get_tree().create_timer(0.5).timeout
	get_tree().change_scene_to_file("res://EX无尽模式.tscn")
func back():	
	sfx01.play();
	await get_tree().create_timer(0.5).timeout
	get_tree().change_scene_to_file("res://场景/主菜单.tscn")
